#include <stddef>

#include "game.h"

game *game::gameInstance = NULL;
dice *dice:diceInstance_0 = NULL;
dice *dice:diceInstance_1 = NULL;


game::game() {
	gameInstance = NULL;
	dice_0 = getDiceInstance_0();
	dice_1 = getDiceInstance_1();

	players = NULL;
	rules = NULL;
	
}

game::game(rule *rs, player ps[]) {
	gameInstance = getGameInstance();
	dice_0 = getDiceInstance_0();
	dice_1 = getDiceInstance_1();
	
	rules = rs[];
	players = ps[];
	
	currentHost = 0;
	
	point_p0 = 25000; // default points
	point_p1 = 25000;
	point_p2 = 25000;
	point_p3 = 25000;
	
}


// =========================================


game *game::getGameInstance() {
	if (gameInstance == NULL) {
		gameInstance = new game();
	}
	
	return gameInstance;
}

dice *dice::getDiceInstance() 